$(function() { 
/*
 * GENERATE TOP MENU
 */	
        $(".topmenu").menubar({
			menuIcon: true,
			buttons: true,                     
			position: {
				within: $("#demo-frame").add(window).first()
			},
			select: function(event, ui) {
				
                                //alert(ui.item.children().attr('href'));
                                
			}
		});
	

/*
 * GENERATE VERTICAL TABS FOR SETTINGS PAGE
 */	
		// Accordion
		$("#settings-tabs").accordion({ header: "h3" });
		
}); 